// 查询会员用户详情
import request from '@/utils/request'

export const getUser = async (id: number) => {
  return await request.get(`member/user/getMember?id=` + id, {}, { isYuDao: true })
}
export const getAssetsList = async (data: any) => {
  if (uni.getStorageSync('wapShopMember')) {
    data.userId = uni.getStorageSync('wapShopMember').id;
  }
  return await request.get(`pay/wallet/pageAssets`, data, { isYuDao: true })
}
export const getPayWalletPageCart = async (data: any) => {
  if (uni.getStorageSync('wapShopMember')) {
    data.userId = uni.getStorageSync('wapShopMember').id;
  }
  return await request.get(`pay/wallet/pageCart`, data, { isYuDao: true })
}
